from django.contrib import admin

from record.models import Car, Record


class CarAdmin(admin.ModelAdmin):
    ordering = ('id', )
    list_display = ('id', 'carno', 'owner', 'brand')
    list_per_page = 10


class RecordAdmin(admin.ModelAdmin):
    ordering = ('id', )
    list_display = ('id', 'car', 'reason', 'makedate', 'punish', 'dealt')
    list_per_page = 10


admin.site.register(Car, CarAdmin)
admin.site.register(Record, RecordAdmin)
